/**
 * Created by Administrator on 2015/12/22.
 */
var Promise = require('promise');
var logger = require('log4js').getLogger('newsService');
var comm = require('../../utils/commonUtils');
var mailUtil = require('../../utils/mail');
var newsDao = require('../dao/NewsDao')
var newsService = {};

newsService.getNews = function(){
    return newsDao.getByPage(null,null,null,"create_time");

}

newsService.getNewsDel = function(){
    return Promise.resolve(null);
}
newsService.getById = function(newsId){
    return newsDao.getById(newsId);
}
module.exports = newsService;
